Thanks. I just quickly replayed it using save states. Yes, the bug is fixed. Now, as expected, the end screen appears after Level 20 and no other bugs have popped up either.