Fix sqs task history