some events are getting called twice