Fixing the issue with adding values