Fix switching files in the file list