fixed bug when multiple / are not specified