fix issue with optional text/html