Fix logic in FlashPolicyHandler