fix IRQ patch in case of multple applications of the patch