Division by 0 due to bad connection to API