fix preview auto fit