fix connection listener