Ensure the path to last-action is correct.