Fix language and direction switching