minimal fix for preview