fixed X problem for the graph