attempt to fix attachment uploading