ajax call fixes