fix bugs for preview block