Out of curiosity, could you try having `vec.push(0)` and see if it works?