preview bug fix