fixing edge case for verify