Bugfix: Get correct endpoint