Fixed a bug in detection of unnamed decks.