fix preview issue