Fixed a bug with the ajax submit form