fixed a bug with the message queue creation