fixed delete text index