fixed bug when check_procs is used