fixed the linediv-c issue