Fixed Some bugs in warehouseAddWindow