fixed an issue with missing end in spree core engine.rb