Fixed the ajax bug.