Fixed Pundit errors