Fix Log bug