Fix for error messages when access denied