Fixing inversion of filename suffix