log and simple setting--correct a bug on log