fix fork check #367