These two asserts seem redundant given you just did a max ...