Setting dataMode properly
Fixed preview