More fixes to fork()