Fix line graph bug