fixed a task hierarchy bug