Fix broken REST API