Fix shopping cart bugs.