Fixed message queue issue with pointers