Fix a bug where it wouldn't enable the events correctly after reconnecting

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>