Oops, index should be i instead of zero.