fixed bug caused by verifying patients after migration