fix recursion bug on linegraph options