Fixed bugs in logs