fix for avoid type missmatch in case of overload events and properties functions