fix child exit