fix #1, make sure OwnedBy.Valid is true when setting the ownedby field