Fix trim bug previously introduced