Squished Bug in Resource Library
fixed runtime errors and ensured resources were collect properly