Fixed overflow glitch caused by resizing policy