fixed for spree 2.1