fix in printing log