Make compatible with Spree 1.2