Fix endpoint count