Fix bug where I used the wrong abs()