fixed bug in runge algo