Tried to fix bug in log library