make it work for spree 1.3.x