fix buffer-read-only stuff on messages