Fixed a bug when typing /setmaterial