Corrected the sendExtendedMessage with metadata size