Fix issues with incorrect assignment to Config type