fix: new template bug with code mirror
minor fix
type field nullable