bug fix with message allocation