Fix a little bug to resource owner to checkAccess.