Fix weird IE behavior with width calculations