More bugfix for attach session if already exists