Pointer now gets re-set correctly