Fixed materials

This should fix #7