fixes for live editor preview