fixed preview issue for pages