I looked a bit into the problem of Niai and Keisei not working during reviews and lesson quizzes and updated a few outdated numbers in the code. It should work again if you update from here:
@acm2010 I made a pull request with my changes – this is my first ever attempt at creating a pull request, sorry if I did something wrong.