Fix issues with precision and freeing used mpfs.