fixed issue with materials