fixing type problem in migration