change for condition to inner if in add of arrays fixes #104