Security fix
Migrate grades