Fix ajax stuff