update pcie.c, bug fix