Fix editor bugs.