Fix idle parent process check