fixed NPE after receive timeout