Bullshit attempt to make this compatible with spree 2.3