debug a messages bug