fixed log error