Fix assemble url helper