fix trim bug
fix trim bug