fixed migration and model.