connection to slot bugfix