fix double fire ajax call