fixed pointer issue on add object, next.previous not being set