Fixes #191, update graph after adding new function and not changing default value