Fix endpoint class.