update to works with spree 1.3