Bugfixing line drawing