fixed the submit data issue