Fixed maxId in Linearized Tree