fixes issue when switching tabs

being served id would increase, its not supposed to in that case