fixed ugly bug in new rating calculations