max history fix