Fix bug with multiple --instances implementation