fixed issue with dodgy urls