Fix visual index handler