Off by one error in Add()