Graph works properly