fixed index button bug