fixed bug, if no leading slash exists