fix fp9 bug & add ios support