Modify Shopping cart class Error when adding last data