Fix refresh

Reinitialize the editor when navigating.