fixed a bug in ptree construction
fixed a bug in ptree construction

radu-gheorghe/liblognorm,aturetta/liblognorm,aturetta/liblognorm,radu-gheorghe/liblognorm,janmejay/liblognorm,janmejay/liblognorm,aturetta/liblognorm