fix for disk detach and delete bug