fix bug in preview setup