Update UI.c

Fixed the debug mode