Fix ajax requests