Fix for if user can't connect to API

Not a huge problem, but now the value will stay static until the user reconnects.