fix env resource path bug
fix preview bug