Fixed a bug where the library was using abs instead of fabs