Corrected bug of nav when not connected