another resoucre leak fix