fix theme change after client connected.