fix race condition with urlrouting