fixed the save submit bug