Fixes bug with Default Material not being set