Fixed bug in line 20 in rest_api