Fix bug when trying to snapshot instance with incorrect name