Reorganised bug fix to amazon inventory