Fix error in sending OSD messages.