fix preview pages without data.json bug