bug in logdb fixed