fixed issue with top element in dump
remove old debug templates