update rythm engin with bug fix #169