Bug fix in logs