Fixed misformed trimming.