fix processing metadata in witica.js