Delete module bug fix