fixed the learn logic to not glitch when going to tabs visited in another diet