fix off by one in missionlib