fix the static pkg decode