fixed error trimming cells