fixed applicatin policy for pundit to resolve error