Fix repeat selection check.