fix editor temp filename was considered as a valid filename