[DeadboltHelper] Fixed two exploits.