folder deletion bugfix