Fixing innerFame calculation bug