fixed potential bug when chained modal views result in cleared dismiss blocks for subsequent modal views