Fixed selection file creation