removed repeated preview bug