Unbreak gecko when checking permissions.