catch in case of material indexin errors