fix the bug with empty shopping cart