fix incorrect function call in message.hpp