fix first and last pointers