... I was unable to complete wave 5 for some reason. Game just didn't accept win even after retrying. Only upgrade I bought turn before was chain lightning. Also, quitting to menu and continuing game from there seemed to fix the bug.
It didn't happen again later.