Fix historical tasks table in refactor_request