bugfixes for messagewindows