Fix material miss error.