log bug fixed