fixed minor preview bug