fixing a bug in the new selector