Bugfixed: get wrong pid when restore upstream from config's files