fixed APP_REST_ROOT bug