Fix bug with states selector addition