Fixed comparing of new sizes instead of the original ones.