Update the pointer to the end of the block when reversing

Just reversing the array is not enough, the pointers to the end
of the block must be changed to the reversed array index.