Fixed a glitch where protection didn't work right in the staging world