fixed broken energy minimization activity

Fixed error by specifically setting only properties that changed. There are now read-only properties,
so you can't just get the properties object, make changes to that object and set the properties using
the entire properties object because it contains read-only props.