Fixed error if message structure (type) is unknown