fix the bug for handling absolute value