fixed several bugs caused by large deletion pre deal