fix but for root end with slash