Fixed cutting off last letter of filename

Coding is suffering