fix preview problem in edit paper