fix a pointer arithmetic.