fixed cart add error when cart was empty