Fixed bug with magento 1.5 integration