fixed the ajax bug i introduced last night