Avoid errors in migrations