Fix issue where assets were being disposed twice.