Fixes Material class