fix preview bug on project load.