Fixed bug which caused url-errors in magento