Fixed folder deletion issue