fix ensure_process in condition