Fixed file-naming bug