Fix performance issue.