fixed case of path starting with /