Fix log problem