fixed problem in migration