Fixed bug on log