fix bug where lvl was incremented after finish last availaible lvl