fix MAX_MSG_LEN define