fix issue #1, following the information in http://www.magentocommerce.com/boards/viewthread/7301/