fix for log error