fix error in migration