fixed how line was being added to code window