fix get_forks bug (remove debug code)