correctly handle module pointers if modifable model is disposed