Fix analyze running not in background