Bug fix in log