fix a bug & add editor setting