Fixed bug in instanceChangedAction