Incorrect text container

I recently encountered a problem with incorrectly sizing a container for text. I attached a screenshot of the figma screen below so you can see that the settings are correct. When creating text now always have to correct the container manually and it is VERY inconvenient, can anyone know what could be the problem?

Thanks in advance