Fixed handling of translation selection.