crush: fix tree bucket functions