Undid hack in REST API.