Fix for if user can't connect to API.
Merge pull request #4 from Codingbean/master

Fix for if user can't connect to API