Fixed, by renaming ``mode`` to ``new_line_mode``.