Fixing line display issues