fixed a resource issue