ABS function bug fixed