[fix] fixed the size count and debug message dumping