Fix initialization problems for preferences and editor input