Fixed bug with clearing events for Instances