fixed hang up on Linux