material ids are now again numbered starting from 0