a hack fix for event registration