fixing bugs around the location of items when running the bin script.