Fix trimming.