Fixed bug when only one file was selected.