fixed type error in migration