fixed a performance issue with pyMission