Fix writing to pci