Fixes Material instantiation