Fixed resource issue