Solved a bug raised when you are connected to a wifi but you don't have
internet connection.