fix bug in shrink