fix bug gridtree