fixed bug in log debug message