undel resourse bug fixed