fix first run app fail

because running rebuild and run in parallel