bugfix for selector