Fix URL generation.