fix bug and begin editor