Fix the error with the ajax call.