Fixed trimming issue.