Refactored debug messages.

Couple of times saw that bug when at the end a character becomes
unclickable.