Fix reading of configuration upon startup.