error in rank calculation after shopping creation!