Fix usage of abs.