Fixing differential equation solver.