Fix for https://github.com/HearthStats/hearthstats/issues/160