autocorrect works for interface language

Hello
My LibreOffice uses the catalan language for the interface. I’m writting a text in spanish. I indicated this on tools->language->All text->Spanish(Spain).
But while I’m writting, Write is autocorrecting words into catalan, not into spanish.
For example:
In spanish, I write “pero” and it modifies to “però” (o with tilde) and inmediatly marks as incorrect.
In spanish, I write “posible” and it modifies to “possible” (double s) and inmediatly marks as incorrect.

Thanks in advance
dapobe