NoneType Bug in logdb fixed