Fix query sent twice on Firefox