fixed a bug and added an error check
fixed a bug and added an error check

dangeredwolf/ModernDeck,dangeredwolf/TweetDeck-Enhancer,dangeredwolf/TweetDeck-Enhancer,dangeredwolf/ModernDeck,dangeredwolf/ModernDeck