FIX resoucre leak