correct errors in messages