TaskHistResponse logic changed