fix show wrong index