Bug fix when a large number of derivatives are requested.