Fix usage of wrong abs() function.