Fix bug for path starting with /