Fixed bug where end of level number was always 0.