fix error when recalculating overlay width and height