The final repair of changeSize() function