Fixing some refrence errors to get build to deploy