Fix a bug where instances are shown as terminated if they are not