Correcting file extension on cycle