fix event controller