Fixed bug in GaussianProcess.