Fixed compatibility error with Magento 1.6