fixed preview with json