Fix listening for wrong event

@njx @dangoor @SAPlayer
 Issue #5412