Fix failing when pending migrations