avoiding bug of fp