Fix ajax pages