fix 814

needz moar std::max