tiny fix to ajax call