fixed empty cart problem