fix bug in form submit ajax