fix error submiting files