fixed get material from warehouse