fix problem with message queue