Fixed IE exception issue while resizing.