debuging bug on fork