Fix app behavior without network connection