fix issue about log print