Fixing crash in draw_line