fix bugs preview