Fix check for level completion