fixed this object instance in Client.connect callback