Small fixes for grantLevel and resetLevel