fix preview sanitize