fixed bug in file uploader