Fix log state