fix for admin check
defaultObject to defaultEntity