preview bug fixed