fix error in formatting  message error