[ipkg] fix possible BSOD.