fixed pipe thread exiting issue