fix call to htmlAttributes