Fix updateTree. Change constant definitions