fixed bug in verification