Fix parent directory doesnt rename problem