Fix bug with shiftPointers().