Fixes a bug where the path to the next task in a session was not getting set correctly.