Fixed a bunch of GPR issues.