fixed TypeError in logdb