fixed another bug where router could hang or stop serving