bug in assigning owner