Fix bug with publishing and handling message base types