Fix drawing of variables to lines