deal with error data.
Fix performance issue.