Bug Fixes

bug from aritmetics functions.