Maybe you installed the wires wrong on the coil packs for 1 and 5??

Vacuum leak may be another thing for the rough idle.