fixed a bug of trim module.
Merge pull request #325 from taoyuanyuan/point

fixed a bug of trim module.