fix error during disposal of nested items