A little extension to fix current implementation of Cash on Delivery payment method. It works on Magento CE 1.8 and EE 1.13