#1038 Fixed bug in CollocationIntegrator
#1038 Attempted fix