Fix bug in language selection