fix preview not correct bug