Bug fixed that removed last 4 characters from file name