fix bug where refresh causes user to become unselected