query bug, firefox workaround