Fixed multiple deletion of modules