fixed delete calls in migration