Added a missing abs() call