fixed a bug when shopping cart had no contents