fix user trim bug