Magento CE 1.6 compatibility

bug fixed with Magento 1.6 default behavior not correctly managed