Small change to make it compatible with spree 1.3.3