fix for event binding