Upgrade to apm 0.51.0