fixed middle of range method for right parts of tree