Fix server detected as offline when it is online