fixed migration so file names are properly renamed