Fix removing temp divs when calculating scroll width