Fixed incorrect function call to message type callback