fix a bug for what if the path has the prefix slash that will cannot write