bugs in fork fixed (wrong pointer in fork_thread)
bugs in fork fixed (wrong pointer in fork_thread)