Fixed a bug where userspace fork worked only for once