fix empty cart bug