Script aggregation yields wrong (but close) answer

Thank you! I thought it would be something like that. Your solution has definitely fixed my problem. Have a great day!