Fixed tag tree issue