bugfix for querySelector