[fixed #26] Fixed Undefined variable: isOwner