Fixed line plot bug