Fix endpoint. Fixes #890