Fix broken params

ref #1366

Fixed a mistake of SpanningRegex#to_code.