Bug fix: crash when loading a BIN file with more than 1 material (with the new material handling mechanism)