addin/deleting works, error when idx too big