fixed possible index out of bound exception when destinationview = originator