On duplicate declaration fix

on contains 3 duplicate declarations for event. this fixes it.