Materials: Fix instance destruction