bugfix to warehouse selection