fix issue with popup index