fixed bug where last material in .mtl files was not added