shelf management bug fixed, added check to double scan of a shelf