fix unformatted messages bug