Remove removed item from selection, Fixed out of array bound bug