fix process start race condition