fixed bug on async fork