fixed a but in convertToIrreversible.m