Patched a bug when an element was exactly half of the number to be added