fix add for 0 index