Correcting double file extension