Fixed bug with newPos in getCorrectedSize