index show logic bug fix