Fixed performance issue.