Bug fixing of material manager