Fix bug in OWNERDATA selection handling.