Fixed crash when repeating effect that extends past selection
