Fix bug where we modify the last dimension of a zero-dimensional thing