fixing bugs in lighttree maker