trimming bug fix