fixed potential issue with visibility of message between threads (Special thanks to Michael G. Noll for spotting this one!)