extra: fix a bug in how pointers are set inside called functions