fixed preview bug

fixed preview bug