fix null pointer with queryDecks