Fixed skipping over disabled elements when they are visible.