How does the equation for min heap array indexing work?
Start indexing at $1$, then everything will be fine.

Want to start at $0$? That is no problem, but one has to adjust the formula's. Children of $x$ can be found at $2x+1$ and $2x+2$.