fixed stale connection issue