bug fix that crashes the app if the server fails to return valid data