Fix problem in  getting graph values