Revise rpmd gradient method.