fix mac nw files flatten problem