fix /statements REST API