fix empty cart problem