fixed some problems with file upload on profile