Fixed problem with int abs() function