yes, you are right, this could in the worst case lead to a wrong max value (even though not very likely).