fix checkgrad usampl conflict with homology