using name rather than number
fix unhandle bug when create new file