fixed gatekeeper bug