Fixed preview bug.