fixed log handler