Fixes API endpoints