Fix assigning the layout for new editors