fixed tunnel build race condition