bug while conection lost