fix bug where change instance before add instance would lead to keyerror; juggle the instance fields around
1 file changed