fix graph max