Fixed preview flickering