Bugfix in migrations indexes