fixed: directories couldn't be deleted