bugfix next lecture detection