Small bug fix for number of messages that is shown in panel
clean up debug msg
Found a bug, added a todo, sorry I didn't fix it yet :-p