Fix editor errors