remove bad resource leak fix