fixed log visbility bug