fix for no file selected
ie compatibility