fix up the ajax override code