Fix all kinds of bugs making min size delete not work.