fix a preview issue