Fix configuration generation