fix the bug that function 'get_task' failed to get attributes like 'approved', 'failed' from disk