added fixes to materials