Fixing bugs in RESTful stage APIs.