fix not-shrinking-on-delete bug