fixing bugs treegrid