Fix FileType reset behavior