fix to nested config