workaround for FF bug in querySelector