fix submittion bug