material bugfixes