Fixed the curve bug with drawing the "fill" wrong.