Fixed spree array issues