fixed startPreview error