adaptation to spree 1.3.2