Fixed picking the right editor