changes: fix bugs in shrink