It doesn't make any sense that the main division of the verse is after "מקולות". I looked in
Wikipedia, and I guess that the reason is that when Oleh VeYored is at the first word in the verse, it is replaced by Azla Legarmeh. So I guess that when the algorithm sees an Azla Legarmeh at the first word of the verse, it treats it as an Oleh VeYored. However, in this case it should treat it as an Azla Legarmeh.
If I can help with fixing this, let me know. I'm an experienced programmer, and I think I'll enjoy helping with this.