fix: resource won't delete bug