fix hits calculation