Fix #96, Fix #97: Reset events correctly with plugin refresh method