Bug fix with multiple ssh sessions