fix the issue with debug display