Fix the ajax onLoad callback error