Fix languages query