fix preview widget