Fixes events triggered on server instead of connectiob