message functionality bug