Fix query to support firefox.