fix failed task to pg record