Fixed checkgrad