fixed package trimming [ci skip]