messages: fix for dynamic menu item

closes  #274