Fixed build: malformed only defined when needed.