fix for remove item from cart in legacy