fix problem with data graph (unordered data)