Apply fix for ajax call