Fixed a performance issue.