Fix bug in ajax post data