Fix function isOwner