Fixed preview state update in JSON file