This module used satellite 37818, tle dated 11272.03222566, however nothing in this issue is particular to it.
To recreate the bug, take a satellite that is visible at this moment and shows a sky track in the polar view. Then using the time controller, shift forward in time until the satellite is visible again and a new sky track shows in the polar view. Then close the time controller. The "future" sky track remains visible and does not reset to the current sky track that should be seen.
A conditional probably needs to be added in update_sat near the call to qth_small_dist to check that the current pass is at a valid time.