Fixed repeated policy changing bug.