Don't switch layout if an extension is set.