Fix serialization of live-preview message