Fix flawed verification logic