Fix midpoints/lines, refs #7 thanks @pgiraud!