fix selection rect updating