fix warning in drawKFIViewport in 2d