fixed error in frenzy calculation