Fix for setting delivery methods in Magento 1.8