Fix bug with selector