fix potential crash-causing coding errors when removing regionviews from the selection