fix bug for to_win_path, call twice by itself will break