fixes ajax to work with multisite settings