fixed issues with uploading