fixing extension problem, bug when uploading 1 file