Small fix in extension validation