Update H2.java

reset max fix