Fixed a memory leak; automatic boundary size change.