DAVL-1: fix height calculation in join