Fixed a type bug that was causing lines to be offset wrongly.