fixed bug wehen uploading files