Fixed preview hiding on exception