Fixed Resource Management

There were bugs related to loading from a file and then how that was used