fix  hard & soft fp error