Offset direction fix

better handling of spiky vertices