still need to fix task history bug