transformSelectionIn fixed for block selection