[mission] fix segmentation fault and add generic mission FP