Fixed int parsing for graph