Found an error in the code that retrieves the adapter path.