fix revisionId in widgets generateHtml method