Fixed the bug that caused duplicate message cards in gui, added debug sysouts to dht