fix autoHeight regression due to nextTick bug