Fix minor performance issue.