Fixed the resources to properly being loaded