fix pack resource err