hopefully fixed log bug