fixes on double file upload