Fix definition of the covariance matrix of derivatives.
Merge pull request #566 from FabricioS:master