fixes spaces in filenames bug