fix some preview problem.