Fix ajax method fallback problem.