fix a bug:getAllMissions code