fix 'disposed' assertion