LibreOffice Basic issue since version 5.2

Since version 5.2 (Windows 64) some of my Basic macros don’t work, so that I always have to revert to 5.1. I hoped the issue would be fixed with 5.2.4 but it was not:

With a loop like this one:

for x = 0 to oStyleFamille.Count -1

I get an “out of bounds” message.

Was the Basic interpreter modified with 5.2, so that this sort of loop should be set to:

for x = 1 to oStyleFamille.Count

Which would be a very serious and problematic change???

Thanks.

Using LO v5.2.3.3 on Mint 18

for x = 0 to oStyleFamilies.Count -1

works without error.