fix bug in abs