fixed bugs in graph configuration logic