isVertical bug fix