fix preview issues