Fix grades management commands