Fixed maximum capacity bug in warehouse