rest: fixed small bug with incorrect paths