eventCallbacks type fix