Update deps and fix this binding in events.