Fixed bug with unlocking levels too early.