fix not updating selection when it's the same value